import type { SysNotice } from "@/entity/SysNotice";
import { BaseEntityService } from "./base-entity.service";
import httpClient from "./http-client";

export class SysNoticeService extends BaseEntityService<SysNotice> {
    baseUrl = "/api/v1.0/admin/notice";

    async publish(id: number) {
        return httpClient.post(`${this.baseUrl}/publish/${id}`);
    }
}

const noticeService = new SysNoticeService();

export default noticeService;